﻿/*********************************************************************************
**                                                                              **
**  Copyright (C) 2024 LiLong                                                   **
**  This file is part of GnssLogs.                                              **
**                                                                              **
**  GnssLogs is free software: you can redistribute it and/or modify            **
**  it under the terms of the GNU Lesser General Public License as published by **
**  the Free Software Foundation, either version 3 of the License, or           **
**  (at your option) any later version.                                         **
**                                                                              **
**  GnssLogs is distributed in the hope that it will be useful,                 **
**  but WITHOUT ANY WARRANTY; without even the implied warranty of              **
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               **
**  GNU Lesser General Public License for more details.                         **
**                                                                              **
**  You should have received a copy of the GNU Lesser General Public License    **
**  along with GnssLogs.  If not, see <https://www.gnu.org/licenses/>.          **
**********************************************************************************/
#pragma once

#include "Commons.h"
#include "LogHeader.h"

namespace GnssLogs
{
namespace SATXYZ2
{
struct Data
{
    LogHeader::Data header;
    uint32_t satCount;
    struct Satellite
    {
        SatelliteSystem system;
        uint32_t satelliteID;
        double x;
        double y;
        double z;
        double clkCorr;
        double ionoDelay;
        double tropoDelay;
        double reserved1;
        double reserved2;
    };
    std::vector<Satellite> sats;
    uint32_t crc32;
};
} // namespace SATXYZ2
} // namespace GnssLogs
GNSSLOGS_DECLARE_FORMATTER(GnssLogs::SATXYZ2::Data::Satellite)
GNSSLOGS_DECLARE_FORMATTER(GnssLogs::SATXYZ2::Data)